package com.zshy.base.monitor.domain.contract.enums;

import com.zshy.base.core.contract.enums.IEnum;
import com.zshy.base.kit.enums.EnumValueResolver;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 卡片跳转类型，1 代表跳转url，2 代表打开小程序。text_notice模版卡片中该字段取值范围为[1,2]
 *
 * @author zhouhengzhe
 */
@Getter
@AllArgsConstructor
public enum CardActionTypeEnum implements IEnum<Integer>, EnumValueResolver<CardActionTypeEnum, Integer> {

    /**
     * 1 代表跳转URL
     */
    URL(1, "跳转URL"),
    /**
     * 2 代表跳转小程序
     */
    MINI_APP(2, "跳转小程序");


    private final Integer code;
    private final String desc;

    }